﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Smart.Navigation;

namespace NavigationSampleApp.Views
{
    /// <summary>
    /// 
    /// </summary>
    [View( ViewId.Stack2 )]
    public partial class Stack2View : AppViewBase
    {
        /// <summary>
        /// 
        /// </summary>
        public Stack2View()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="args"></param>
        public override void OnViewOpen(ViewForwardEventArgs args)
        {
            // ファンクションキー
            FunctionCotrol.UpdateFunctionKeys( null );
        }

        /// <summary>
        /// 
        /// </summary>
        public override void OnButtonExit()
        {
            Navigator.Pop();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PopButton_Click(object sender, EventArgs e)
        {
            Navigator.Pop();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PushButton_Click(object sender, EventArgs e)
        {
            Navigator.Push( ViewId.Stack3 );
        }
    }
}